package com.team7.home.controller.apiController;


import com.team7.common.vo.CommonResult;
import com.team7.home.service.LinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home/qian/link")

public class ApiLinkController {

    @Autowired
    private LinkService linkService;

    /**
     * 获取所有的友情链接
     * @return
     */
    @GetMapping("getQianLink")
    public CommonResult getQianLink(){
        return linkService.getQianLink();
    }
}
